Skip to content

Bug 637846: Item Age Composition '...before' quantity reflected only last entry#9081

Draft
alexei-dobriansky wants to merge 1 commit into
mainfrom
bugs/637846-EASY-ItemAgeCompositionBeforeQty
Draft

Bug 637846: Item Age Composition '...before' quantity reflected only last entry#9081
alexei-dobriansky wants to merge 1 commit into
mainfrom
bugs/637846-EASY-ItemAgeCompositionBeforeQty

Conversation

@alexei-dobriansky

@alexei-dobriansky alexei-dobriansky commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Fixes AB#637846

Report 5808 set the quantity buckets InvtQty[1..5]/TotalInvtQty per item ledger entry in CalcRemainingQty (clearing then setting one bucket) but output them once after the ILE loop, so quantities reflected only the last ILE. Value columns were correct because they accumulate with +=. Accumulate the quantities into InvtQtyTotal[] and bind the quantity columns (total to RemainingQty). Column names unchanged so layout bindings are preserved. Extends the report test.

…last entry

Report 5808 set the quantity buckets InvtQty[1..5]/TotalInvtQty per item ledger
entry in CalcRemainingQty (clearing then setting one bucket) but output them once
after the ILE loop, so quantities reflected only the last ILE. Value columns were
correct because they accumulate with +=. Accumulate the quantities into
InvtQtyTotal[] and bind the quantity columns (and the total to RemainingQty).
Column names are unchanged so the layout bindings are preserved.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@alexei-dobriansky alexei-dobriansky added the SCM GitHub request for SCM area label Jul 3, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Jul 3, 2026
@alexei-dobriansky alexei-dobriansky self-assigned this Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SCM GitHub request for SCM area

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant